package com.zny.sescore.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 登录用户信息
 *
 * @author zhangnayi
 * @date 2021-03-28 15:28
 */
@Data
public class LoginInfo implements Serializable {

    private static final long serialVersionUID = -8254941093819644709L;

    private Integer userId;

    private String userName;

    private String realName;

    private String mobile;

    private Integer hospitalId;

    private Integer hisDepartmentId;

    private Integer hosArea;

    private String openId;

    private String unionId;

    private Integer userType;

    private List<Permission> permissions;

    /**
     * 是否社区用户
     */
    private boolean communityUserFlag = false;

    /**
     * 是否拥有血透权限
     */
    private boolean dialysisFlag = false;

    private Integer systemId;

    private String systemName;

    private List<Integer> departmentIdList;

    private List<Integer> departmentDiseaseIdList;

    @Data
    public static class Permission implements Serializable {
        private static final long serialVersionUID = -2576801837135725431L;

        private String permissionCode;

        private String permissionName;
    }
}
